package com.tinama.jedis01.enums;

/**
 * @author lgc
 * @createDate 2021/1/9 - 15:14
 */
public class Test {
    public static void main(String[] args){
        Pizza pizza = new Pizza();
//        pizza.setStatus(Pizza.PizzaStatus.ORDERED);
//        System.out.println(pizza.isDeliverable());

//        pizza.setStatus(Pizza.PizzaStatus.READY);
//        System.out.println(pizza.getStatus().isReady());
//        pizza.deliver();
//        System.out.println(pizza.getStatus().isDelivered());
//        System.out.println(pizza.isDeliverable());
//        pizza.printTimeToDeliver();
        pizza.setStatus(Pizza.PizzaStatus.DELIVERED);

        System.out.println("DELIVERED".equals(Pizza.PizzaStatus.DELIVERED.name()));
        System.out.println(pizza.getStatus() == Pizza.PizzaStatus.DELIVERED);
    }
}
